using Mathmall.Administration.Models;

namespace Mathmall.Administration.Service;

public interface IAttrAttrGroupRelationService
{
    /// <summary>
    /// 保存属性和属性分组的关联关系
    /// </summary>
    /// <param name="attrGroupRelation"></param>
    /// <returns></returns>
    Task<int> AddAttrAttrGroupRelation(AttrAttrgroupRelation attrGroupRelation);

    /// <summary>
    /// 修改属性和属性分组的关联关系
    /// </summary>
    /// <param name="attrGroupRelation"></param>
    /// <returns></returns>
    Task<int> UpdateAttrAttrGroupRelation(AttrAttrgroupRelation attrGroupRelation);

    /// <summary>
    /// 删除属性与分组的关联关系
    /// </summary>
    /// <param name="attrIds"></param>
    /// <returns></returns>
    Task<int> DeleteAttrAttrGroupRelation(List<int> attrIds);
}